package com.itheima.service;

import com.itheima.entity.Result;
import com.itheima.pojo.OrderInfo;
import org.springframework.dao.OptimisticLockingFailureException;

import java.util.Map;

public interface OrderService {
    Result order(OrderInfo orderInfo) throws  OptimisticLockingFailureException;

    Map findById(Integer id);

    void updateOutTradeNo(Integer orderId, String outTradeNo);

    void updatePayStatus(String out_trade_no);
}
